
import request from '@/utils/requist'


export const EditDaily = ({ project_id, day_finished, day_unfinished, coordinate, remark }) => {
  return request({
    method: 'post',
    url:  '/api/project/EditDaily',
    data: { project_id, day_finished, day_unfinished, coordinate, remark }
  })
}
// { project_id, week_finished, week_unfinished, next_plan }
export const EditWeekly = (fd) => {
  return request({
    method: 'post',
    url:  '/api/project/EditWeekly',
    data: fd
  })
}
// { project_id, month_finished, month_sum, next_plan,file1,file_name1,file2,file_name2 }
export const EditMonth = (fd) => {
  return request({
    method: 'post',
    url:  '/api/project/EditMonth',
    data: fd
  })
}
export const EditQuarter = ({ project_id,
  quarter_special,
  problem,
  solution_way,
  remark
}) => {
  return request({
    method: 'post',
    url:  '/api/project/EditQuarter',
    data: {
      project_id,
      quarter_special,
      problem,
      solution_way,
      remark
    }
  })
}
export const EditHalfYear = ({ project_id,
  half_year_finished,
  half_year_sum,
  next_plan,
  remark,
}) => {
  return request({
    method: 'post',
    url:  '/api/project/EditHalfYear',
    data: {
      project_id,
      half_year_finished,
      half_year_sum,
      next_plan,
      remark,
    }
  })
}
export const EditYear = ({ project_id,
  year_finished,
  year_sum,
  next_plan,
  remark,
}) => {
  return request({
    method: 'post',
    url:  '/api/project/EditYear',
    data: {
      project_id,
      year_finished,
      year_sum,
      next_plan,
      remark,
    }
  })
}
// { receive_people,finish_time,Supervise_type,} 
export const EditSuperviseNotice = (fd) => {
  return request({
    method: 'post',
    url:  '/api/project/EditSuperviseNotice',
    data: fd
  })
}
// {project_id,receive_people,}
export const EditInspectionReport = (fd) => {
  return request({
    method: 'post',
    url:  '/api/project/EditInspectionReport',
    data: fd
  })
}


export const UploadDailyFile = (file) => {
  return request({
    method: 'post',
    url:  '/api/project/UploadDailyFile',
    data: file
  })
}

export const GetLogDetail = ({
  log_id,
  log_type,
}) => {
  return request({
    method: 'post',
    url:  '/api/project/GetLogDetail',
    data: {
      log_id,
      log_type,
    }
  })
}
